package middle.ground.utils;

import lombok.Data;

/**
 * HTTP响应封装类
 *
 * @author jrl
 * @see HttpResponse
 */
@Data
public class HttpResponse{

	public HttpResponse() {
	}

	public HttpResponse(Integer code) {
		this.code = code;
	}

	public HttpResponse(String responseText) {
		this.responseText = responseText;
	}

	public HttpResponse(Integer code, String responseText) {
		this.code = code;
		this.responseText = responseText;
	}

	public HttpResponse(Integer code, byte[] entity) {
		this.code = code;
		this.entity = entity;
	}

	public HttpResponse(Integer code, String responseText, String cookie) {
		this.code = code;
		this.responseText = responseText;
		this.cookie = cookie;
	}

	private Integer code;
	private String responseText;
	private String cookie;
	private byte[] entity;


}
